<template>
        <div class="about">
          <h1>luyou测试</h1>
        <p>test</p><div><RouterView></RouterView></div>
          
        </div>
      </template>
      
      <script setup lang="ts">
      import { useRoute, useRouter} from 'vue-router';
        const route = useRoute();
        const router = useRouter();
        //? 传参数 使用params取值
        console.log(route,'父路由 route',route.params)
        console.log(router,'router')
      
      </script>
      <style scoped>
        .about {
          min-height: 100vh
        }
        div {display: block;border:1px solid red;}
      </style>
      